from abc import ABC, abstractmethod

class Calculator(ABC):
    @abstractmethod
    def add(self, a: int) -> None:
        """Add a number to the calculator."""
        pass

    def value(self) -> int:
        """Get the value of the calculator."""
        ...

# def create_calculator() -> Calculator:
#     """Create a calculator."""
#     ...